/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing_class;

import stendcontrol.CommandMessage;

/**
 *
 * @author Asko
 */
public class CommandMessageTest {
    
    public static void main(String[] args) throws Exception {
            int re  = 7 ;
            byte r  = 1 ;
            long sh = 51 ;
            
        CommandMessage cm =  new CommandMessage(re,r,sh);
        byte[] buf = cm.getBytes();
        System.out.println("Message :"  );
        for(int i= 0 ; i< buf.length; i++) {
        System.out.print(Integer.toBinaryString((int)buf[i]));
        
        }
   
    }
    
}
